package com.avic.modules.login.service.dto;

import com.avic.annotation.Query;
import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

@Data
public class LoginLogQueryCriteria {

    // 登录时间
    @Query(propName = "loginTime", type = Query.Type.BETWEEN)
    private List<Timestamp> blurry;

    // 下线时间
    @Query(propName = "offlineTime",type = Query.Type.BETWEEN)
    private List<Timestamp> offlineTime;

    // IP地址
    @Query(propName = "ipAddress",type = Query.Type.INNER_LIKE)
    private String ipAddress;

    // 部门
    @Query(propName = "deptName",type = Query.Type.INNER_LIKE)
    private String deptId;

    // 用户
    @Query(propName = "username", type = Query.Type.INNER_LIKE)
    private String name; // 汉字

    @Query(type = Query.Type.BETWEEN)
    private List<Timestamp> createTime;

}
